<%@ page contentType="text/html;charset=UTF-8"%>
<%@ page trimDirectiveWhitespaces="true" %> 
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags"%>

<c:set var="ctx" value="${pageContext.request.contextPath}" />

<div id="main-content">
	<div class="col-lg-12">
		<p class="legend">修改个人服务商信息</p>
		<form id="update-form" class="form-horizontal">
			<div class="form-group">
			<input type="hidden" name="id" class="form-control required" value="${institution.id }"/>
			<input type="hidden" id="userId" name="user.id" class="form-control required" value="${institution.user.id }"/>
			<div class="form-group">
				<label for="name" class="" >名称：</label>
				<input type="text" id="name" name="name" class="form-control required" style="width:400px" readonly="readonly" value="${institution.name }"/>
			</div>
				<label for="lastName" class="">状态</label>
				<select id="status_select" name="status">
					<option value="1" <c:if test="${institution.status == '1' }">selected</c:if>>审核中</option>
					<option value="2" <c:if test="${institution.status == '2' }">selected</c:if>>通过</option>
					<option value="3" <c:if test="${institution.status == '3' }">selected</c:if>>拒绝</option>
				</select><br />
				<textarea style="display:none;margin-top:10px;width:400px;height:100px;" placeholder="请填写拒绝原因" id="reason"></textarea>
			</div>
			<div class="form-group">
				<label for="name" class="">简介</label>
				<div class=" ">
					<textarea name="description" class="form-control required" style="width:400px;height:100px" >${institution.description }</textarea>
				</div>
			</div>

			<div class="form-group">
				<div class=" ">
					<button type="button" class="btn btn-primary add-submit">保存</button>
				</div>
			</div>
		</form>
	</div>
</div>

<c:if test="${env == 'production' }">
	<script type="text/javascript">
		seajs.use("${ctx}/assets/js-dist/admin/institution-edit-page");
	</script>
</c:if>
<c:if test="${env != 'production' }">
	<script type="text/javascript">
		seajs.use("${ctx}/assets/js/admin/institution-edit-page");
	</script>
</c:if>